package cn.yudao.ymcc.dto;

import cn.yudao.ymcc.domain.Course;
import cn.yudao.ymcc.domain.CourseDetail;
import cn.yudao.ymcc.domain.CourseMarket;
import cn.yudao.ymcc.domain.CourseResource;
import lombok.Data;

import javax.validation.Valid;
import javax.validation.constraints.NotEmpty;
import java.util.List;
@Data
public class CourseSaveDto {
        private static final String TEACHAR = "参数异常";

        @Valid
        private Course course;
        @Valid
        private CourseDetail courseDetail;
        @Valid
        private CourseMarket courseMarket;
        @Valid
        private CourseResource courseResource;
        @NotEmpty(message = TEACHAR)
        private List<Long> teacharIds;

}
